﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace AricentTestProject.controls
{
    public partial class FriendsCtrl : BaseControl
    {
        public int FriendsCount 
        {
            get; 
            private set; 
        }
        
        protected void Page_Load(object sender, EventArgs e)
        {
            if (User != null)
            {
                var friends =  User.getFriends();
                FriendsRepeater.DataSource = friends;
                FriendsCount = friends.Count;
                FriendsRepeater.DataBind();
            }
        }
    }
}